import { fileMap } from "@/utils";
import { UploadUserFile } from "element-plus";

type PyUploadFileType = {
	limit?: number;
	disabled?: boolean;
	change?: (value: UploadUserFile) => void;
	remove?: (value: UploadUserFile) => void;
	/** 文件后缀类型 */
	optionalType?: (keyof typeof fileMap)[];
	/** 显示上传按钮傍边的箭头图标 */
	showIcon?: boolean;
	/** 上传数量和已显示数量一致时隐藏上传按钮 */
	hideUpload?: boolean;
	/**小文字提示 */
	prompt?: string;
};

/** 文件尾缀对应的详细类型 */

export type { PyUploadFileType };
